package com.yaowk.sfp.login.api;

import com.yaowk.sfp.login.api.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 小凯
 **/
@FeignClient("login")
@RequestMapping("/login")
public interface LoginApi {

    /**
     * 查找用户
     *
     * @param username
     * @return
     */
    @PostMapping
    User findUser(String username);

    @GetMapping("/loginInfo")
    User loginInfo();
}
